package testView;

import static org.junit.Assert.assertEquals;
import model.ClassImpl;
import model.PackageImpl;

import org.junit.Test;

/**
*   @version Iteration 3 April 26, 2011
*	@author Team EBE
*	CSCI 420 UML Diagram Software Engineering Project
*
*	Tests the PackageImpl.java Model
*	Specifically, this tests the construction of a new package, 
*	setting size, name, and origin points. 
*/
public class testPackage {
	
	@Test
	public void testPackage(){
		PackageImpl testPackage = new PackageImpl();
		String name = "Test Package";
		int sizeX = 5;
		int sizeY = 5;
		
		//initializes the name, x and y coordinate to the sizex and sizey
		testPackage.getName();
		testPackage.setWidth(sizeX);
		testPackage.setHeight(sizeY);
		
		//test the functions that give you the name, x size, and y size, and origins
		testPackage.getName();	
		testPackage.getWidth();
		testPackage.getHeight();
		testPackage.getoX();
		testPackage.getoY();
		
		//Assert Tests
		assertEquals(testPackage.getWidth(), 5);
		assertEquals(testPackage.getHeight(), 5);
		assertEquals(testPackage.getoX(), 0);
		assertEquals(testPackage.getoY(), 0);
	}

}
